package com.hunliji.monitor.web.job;

import com.hunliji.monitor.web.facade.FeiShuFacade;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 飞书token刷新
 * @author wuchen
 */
@Slf4j
@JobHandler(value = "feiShuChatGroupJobHandler")
@Service
public class FeiShuChatGroupJobHandler extends IJobHandler {

    @Resource
    private FeiShuFacade feiShuFacade;

    @Override
    public ReturnT<String> execute(String s) {
        log.info("定时任务触发飞书群组更新");
        //feiShuFacade.handleToken();
        return ReturnT.SUCCESS;
    }


}
